package ltd.hanamaki.study.enumstudy;

import ltd.hanamaki.study.oop.demo10.A;

import java.util.Arrays;

public class Application {

    public static void main(String[] args) {

        System.out.println(new Application().login());

        /* 调用枚举的信息 */
        EnumDemo success = EnumDemo.SUCCESS;
        System.out.println(success);


        EnumDemo[] values = EnumDemo.values();
        System.out.println(Arrays.toString(values));

        System.out.println(EnumDemo.SUCCESS.getEnumType());


    }

    public String login() {
        if (1 > 2) {
            return EnumDemo.SUCCESS.name();
        } else {
            return EnumDemo.ERROR.name();
        }
    }
}
